export interface IAddFileRequestData {
  name: string
  type: string
  fileTemplateFilename?: string
  fileTemplateUrl?: string
}

export interface IUpdateFileRequestData {
  id: number
  name: string
  type: string
  fileTemplateFilename?: string
  fileTemplateUrl?: string
}

export interface IUpdateGrantRequestData {
  itemId: number | undefined
  departmentIds: number[]
}

export interface IGetFileResponseData {
  id: number
  name: string
  type: string
  fileTemplateUrl: string
  fileTemplateFilename: string
}

export interface IGetGrantListResponseData {
  departmentId: number
  departmentName: string
  isGrant: number
}

export type GetFileResponseData = IApiResponseData<{
  total: number
  list: IGetFileResponseData[]
}>
export type GetFileItemResponseData = IApiResponseData<{
  list: IGetFileResponseData[]
}>

export type GetGrantListResponseData = IApiResponseData<{
  total: number
  list: IGetGrantListResponseData[]
}>
